package com.liuyjy.test.domain.xml.affiliation.req;

import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

/**
 * @Author liuyjy
 * @Date 2024/12/26 16:37
 * @Description: 组织参数
 **/
@XmlAccessorType(XmlAccessType.FIELD)
@Data
public class AffiliationRequestContentOrg {
    /**
     * 组织名称
     */
    @XmlElement(name = "orgName")
    private String orgName;

    /**
     * 操作类型:0未改动 1、新增，2、修改 3、删除
     */
    @XmlElement(name = "type")
    private String type;
    /**
     * 原组织
     */
    @XmlElement(name = "originalOrg")
    private String originalOrg = "";

    public void setType(String type) {
        switch (type) {
            case "0":
                type = "未改动";
                break;
            case "1":
                type = "新增";
                break;
            case "2":
                type = "修改";
                break;
            case "3":
                type = "删除";
                break;
        }
        this.type = type;
    }


}
